package com.dong.samples.model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "USER_STUDENT")
public class User implements Serializable {
	private static final long serialVersionUID = 6275830991049270857L;
	
	@Id
	@Column(name = "id")
	private Integer id;
	
	@Column(name = "name", length = 20)
	private String name;
	
	public User() {
		super();
	}
	
	public User(Integer id, String name) {
		super();
		this.id = id;
		this.name = name;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
